<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head>
  <meta name="copyright" content=
  "Copyright (c) IBM Corporation and others 2000, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <link rel="STYLESHEET" href="../book.css" charset="ISO-8859-1" type="text/css">
  <title>Running Ant buildfiles</title>
  <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"></script>
</head>
<body>
  <h1>Running Ant buildfiles</h1>
  <p>To run an Ant buildfile in the Workbench:</p>
  <ol>
    <li>In one of the navigation views, select an XML file.</li>
    <li>From the file's pop-up menu, select <b>Run Ant...</b>. The launch configuration dialog opens.</li>
    <li>Select one or more targets from the <b>Targets</b> tab. The order in which you select the items is the order in
    which they will run. The order is displayed in the <b>Target execution order</b> box at the bottom of the tab. You
    can change the order of the targets by clicking the <b>Order...</b> button.</li>
    <li>(Optional) Configure options on the other tabs. For example, on the <b>Main</b> tab, type any required
    arguments in the <b>Arguments</b> field.</li>
    <li>Click <b>Run</b>.</li>
  </ol>
  <p>The Ant buildfile will run on the selected targets. Unless you disabled the <b>Capture output</b> option on the
  <b>Main</b> tab, the console displays any applicable execution results as the buildfile runs.</p>
  <p>These steps create a persisted launch configuration. The newly created configuration will appear in the launch
  history under <b>Run &gt; External Tools</b> and will be available in the launch configuration dialog which is opened
  by clicking <a class="command-link" href=
  'javascript:executeCommand("org.eclipse.ui.externalTools.commands.OpenExternalToolsConfigurations")'><img src=
  "PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="command link"> <b>Run &gt; External Tools &gt; External
  Tools...</b></a>.</p>
  <h3 class="related">Related concepts</h3><a href="../concepts/concepts-antsupport.htm">Ant support</a><br>
  <a href="../concepts/concepts-22.htm">Builds</a><br>
  <a href="../concepts/concepts-exttools.htm">External tools</a>
  <h3 class="related">Related tasks</h3><a href="../tasks/tasks-exttools-running.htm">Running external tools</a><br>
  <a href="../tasks/tasks-ant-classpath.htm">Modifying the Ant classpath</a><br>
  <a href="../tasks/tasks-ant-version.htm">Using a different version of Ant</a><br>
  <a href="../tasks/tasks-ant-addtasksandtypes.htm">Adding new Ant tasks and types</a>
</body>
</html>
